cmake_minimum_required(VERSION 3.16)

project(CCNotify CXX)

option(BUILD_SHARED "Build shared library" OFF)
option(BUILD_TEST "Build test app" ON)

if(BUILD_SHARED)
    add_library(CCNotify STATIC)
else()
    add_library(CCNotify SHARED)
endif()

add_subdirectory(CCNotify)

if(BUILD_TEST)
    add_executable(test test.cc)
    target_link_libraries(test CCNotify)
endif()